package com.bothin.experiment4.service;

import com.bothin.experiment4.dto.ContactDTO;
import com.bothin.experiment4.form.ContactForm;
import com.bothin.experiment4.model.Contact;
import com.bothin.experiment4.service.base.IBaseService;

import java.text.ParseException;
import java.util.List;

/**
 * Created by bothin
 * At 2019/12/17 10:54
 * Description:
 */
public interface IContactService extends IBaseService<Contact> {
    public List<ContactDTO> findByKeywordDTO(String key);
    public List<ContactDTO> findALLDTO();
    public List<ContactDTO> findAllByPerformanceStatusDTO(Integer status);
    public ContactDTO findByIdDTO(String contactId);
    public List<ContactDTO> findByEmployeeIdDTO(Integer employeeId);
    public List<ContactDTO> findByEmployeeIdAndKeywordDTO(Integer employeeId,String key);
    public void insertByForm(ContactForm contactForm) throws ParseException;
    public void updateByForm(ContactForm contactForm) throws ParseException;
    public void updatePerformanceStatusById(String contactId,Integer status);
}
